/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

/**
 *
 * @author mehdi
 */
@Entity
public class Thematic implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long Thid;
    
   
   public Long getThid() {
		return Thid;
	}

	public void setThid(Long thid) {
		Thid = thid;
	}

	public String getOpti() {
		return opti;
	}

	public void setOpti(String opti) {
		this.opti = opti;
	}


private String Hoti;
   private String Deth;
   
   private String opti;
   
    private String Cuth;
    
    private String Uuth;
    
    private String Duth;

  
   public Thematic(String hoti, String deth, String opti) {
	super();
	Hoti = hoti;
	Deth = deth;
	this.opti = opti;
}

   
   ;
   
  @OneToMany(mappedBy="them")
   private  List<Module> module;

    public Thematic() {
    }

    public Long getId() {
        return Thid;
    }

    public void setId(Long id) {
        this.Thid = id;
    }

    public String getCuth() {
        return Cuth;
    }

    public void setCuth(String Cuth) {
        this.Cuth = Cuth;
    }

    public String getDeth() {
        return Deth;
    }

    public void setDeth(String Deth) {
        this.Deth = Deth;
    }

    public String getDuth() {
        return Duth;
    }

    public void setDuth(String Duth) {
        this.Duth = Duth;
    }

    public String getHoti() {
        return Hoti;
    }

    public void setHoti(String Hoti) {
        this.Hoti = Hoti;
    }

    public String getUuth() {
        return Uuth;
    }

    public void setUuth(String Uuth) {
        this.Uuth = Uuth;
    }

    public List<Module> getModule() {
        return module;
    }

    public void setModule(List<Module> module) {
        this.module = module;
    }

    public String getOption() {
        return opti;
    }

    public void setOption(String option) {
        this.opti = option;
    }
    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (Thid != null ? Thid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Thematic)) {
            return false;
        }
        Thematic other = (Thematic) object;
        if ((this.Thid == null && other.Thid != null) || (this.Thid != null && !this.Thid.equals(other.Thid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "model.Thematic[ id=" + Thid + " ]";
    }
    
}
